* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

body {
    background-color: #f5f7fa;
    color: #333;
    padding: 20px;
}

.box {
    max-width: 1200px;
    margin: 0 auto;
    background: white;
    border-radius: 16px;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.05);
    overflow: hidden;
}

.box-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 24px 32px;
    border-bottom: 1px solid #eaeef5;
    background: linear-gradient(135deg, #f1f5f9 0%, #e2e8f0 100%);
    color: #334155;
}

.header-lbox h1 {
    font-size: 28px;
    font-weight: 700;
    margin-bottom: 8px;
}

.bh-box {
    font-size: 15px;
    opacity: 0.9;
    display: inline-block;
    padding: 4px 12px;
    background: rgba(255, 255, 255, 0.18);
    border-radius: 20px;
}

.header-rbox {
    display: flex;
    gap: 16px;
}

.btn-left,
.btn-right {
    padding: 10px 20px;
    border: none;
    border-radius: 30px;
    font-weight: 600;
    font-size: 15px;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 8px;
}

.btn-left {
    background: white;
    color: #2575fc;
    box-shadow: 0 4px 10px rgba(37, 117, 252, 0.25);
}

.btn-left:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 14px rgba(37, 117, 252, 0.35);
}

.btn-right {
    background: white;
    color: #2575fc;
    /* background: rgba(173, 167, 167, 0.2); */
    /* color: white; */
    border: 1px solid rgba(255, 255, 255, 0.4);
}

.btn-right:hover {
    background: rgba(255, 255, 255, 0.3);
}

.box-nav {
    display: flex;
    background: #f8f9fc;
    border-bottom: 1px solid #eaeef5;
}

.box-nav a {
    padding: 18px 36px;
    text-decoration: none;
    font-weight: 600;
    font-size: 16px;
    position: relative;
    transition: all 0.3s ease;
    color: #5c6a87;
}

.box-nav a:hover {
    color: #2575fc;
    background: rgba(245, 247, 250, 0.8);
}

.box-nav a.a-left {
    border-right: 1px solid #eaeef5;
}

.box-nav a.active {
    color: #2575fc;
}

.box-nav a.active::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 3px;
    background: #2575fc;
    border-radius: 3px 3px 0 0;
}

.box-content {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
    padding: 32px;
}

.body-box {
    background: #ffffff;
    border-radius: 12px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.03);
    padding: 24px;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.body-box:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.07);
}

.body-box-header {
    margin-bottom: 24px;
}

.body-box-title {
    font-size: 18px;
    font-weight: 700;
    color: #2c3e50;
    padding-bottom: 12px;
    border-bottom: 2px solid #eaeef5;
}

.body-box-body>div {
    margin-bottom: 24px;
}

.body-box-body>div:last-child {
    margin-bottom: 0;
}

.body-box-text {
    display: flex;
    justify-content: space-between;
    margin-bottom: 10px;
    font-size: 14px;
    color: #5c6a87;
}

.body-box-text span:last-child {
    color: #2575fc;
    font-weight: 600;
}

.body-box-content {
    display: flex;
    align-items: center;
}

.body-box-content-left-text {
    font-size: 28px;
    font-weight: 800;
    color: #2c3e50;
    width: 80px;
    display: inline-block;
}

.body-box-content-right-text {
    flex: 1;
    position: relative;
    height: 24px;
    border-radius: 12px;
    background: #eaeef5;
    overflow: hidden;
}

.text-box {
    position: absolute;
    top: 0;
    left: 0;
    height: 100%;
    border-radius: 12px;
}


/* First box progress bars */

.body-box:nth-child(1) .text-box {
    background: linear-gradient(90deg, #ff9a9e 0%, #fad0c4 100%);
}


/* Second box progress bars */

.body-box:nth-child(2) .text-box {
    background: linear-gradient(90deg, #a1c4fd 0%, #c2e9fb 100%);
}


/* Third box progress bars */

.body-box:nth-child(3) .text-box {
    background: linear-gradient(90deg, #84fab0 0%, #8fd3f4 100%);
}


/* Learning achievements styles */

.body-box-body-box {
    display: block;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    margin-top: 24px;
}

.body-box-body-box-item {
    margin: 7px;
    background: #f8f9fc;
    border-radius: 12px;
    padding: 5px;
    text-align: center;
    transition: transform 0.3s ease;
}

.body-box-body-box-item:hover {
    transform: translateY(-3px);
}

.border {
    width: 25px;
    height: 25px;
    border-radius: 50%;
    background: #e0e8ff;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: auto;
}

.fa-fire,
.fa-book,
.fa-clock {
    color: #2575fc;
    font-size: 24px;
}

.border-top {
    font-size: 14px;
    color: #5c6a87;
    margin-bottom: 6px;
}

.border-bottom {
    font-size: 18px;
    font-weight: 700;
    color: #2c3e50;
}


/* Learning trends styles */

.body-Box {
    grid-column: span 2;
    background: #ffffff;
    border-radius: 12px;
    padding: 24px;
}

.body-Box-box {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 24px;
}

.btn-icon {
    display: flex;
    gap: 12px;
}

.btn-icon button {
    padding: 8px 16px;
    border: none;
    border-radius: 30px;
    background: #eaeef5;
    color: #5c6a87;
    font-weight: 600;
    font-size: 14px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.btn-icon button:hover {
    background: #dce4f0;
}

#trendChart {
    background: white;
    border-radius: 12px;
    height: 300px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #5c6a87;
    position: relative;
    overflow: hidden;
    background: linear-gradient(135deg, #f8f9fc 0%, #eef2f7 100%);
}

.chart-placeholder {
    z-index: 2;
    text-align: center;
}

.chart-placeholder i {
    font-size: 48px;
    color: #b8c2cc;
    margin-bottom: 16px;
}

.grid-lines {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: repeating-linear-gradient(0deg, transparent, transparent 14px, rgba(234, 238, 245, 0.5) 14px, rgba(234, 238, 245, 0.5) 15px), repeating-linear-gradient(90deg, transparent, transparent 14px, rgba(234, 238, 245, 0.5) 14px, rgba(234, 238, 245, 0.5) 15px);
}

.chart-line {
    position: absolute;
    bottom: 60px;
    left: 60px;
    width: calc(100% - 120px);
    height: 160px;
    overflow: hidden;
}

.line-path {
    fill: none;
    stroke: #2575fc;
    stroke-width: 4;
    stroke-linecap: round;
    stroke-linejoin: round;
    animation: draw 1.5s ease-out forwards;
}

.chart-points {
    position: absolute;
    bottom: 60px;
    left: 60px;
    width: calc(100% - 120px);
    height: 160px;
}

.chart-point {
    position: absolute;
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: #2575fc;
    transform: translate(-50%, 50%);
    box-shadow: 0 0 0 4px rgba(37, 117, 252, 0.2);
}


/* Responsive design */

@media (max-width: 1024px) {
    .box-content {
        grid-template-columns: repeat(2, 1fr);
    }
    .body-Box {
        grid-column: span 2;
    }
}

@media (max-width: 768px) {
    .box-header {
        flex-direction: column;
        text-align: center;
        gap: 20px;
    }
    .header-rbox {
        width: 100%;
        justify-content: center;
    }
    .box-content {
        grid-template-columns: 1fr;
    }
    .body-Box {
        grid-column: span 1;
    }
    .body-box-body-box {
        grid-template-columns: 1fr;
    }
    .box-nav {
        justify-content: center;
    }
}


/* Animations */

@keyframes draw {
    0% {
        stroke-dasharray: 1000;
        stroke-dashoffset: 1000;
    }
    100% {
        stroke-dashoffset: 0;
    }
}